package cn.edu.xmu.oomall.activity.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;


@Data
public class AdvanceSaleModifyVo {

    @ApiModelProperty(value = "活动名")
    private String name;
    @DateTimeFormat(pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    @ApiModelProperty(value = "开始时间")
    private ZonedDateTime beginTime;
    @DateTimeFormat(pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    @ApiModelProperty(value = "结束时间")
    private ZonedDateTime endTime;
    @ApiModelProperty(value = "支付首款时间")
    @DateTimeFormat(pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    private ZonedDateTime payTime;
    @ApiModelProperty(value = "首款金额")
    private Long advancePayPrice;
    @ApiModelProperty(value = "数量")
    private Integer quantity;
    @ApiModelProperty(value = "价格")
    private Long price;

    public AdvanceSaleModifyVo() {
    }
}
